<template>
	<view class="content">
        <!-- <view class="title u-font-32 u-text-center u-padding-top-40 u-padding-bottom-10">{{text.name}}</view> -->
        <!-- <view class="time u-font-24 u-text-center u-padding-bottom-35 u-margin-bottom-45"></view> -->
        <u-parse :html="text.explain"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text: {},
			}
		},
		onLoad() {
			this.getRule();
		},

		methods: {
			getRule() {
				this.$ajax('rule_description', {
			        type: 3,//1平台规则 2平台介绍 3用户协议 4考勤规则
				}).then(ret => {
					if (ret.success == 1000) {
						this.text = ret.detail
					} else {
						this.$toast(ret.msg);
					}
				});
			},
		}
	}
</script>

<style lang="scss">
	page {
		background: #ffffff;
	}
	.content {
		border-top: 2rpx solid #e6e6e6;
		padding: 30rpx;
	}
    .title {
    	font-weight: bold;
    }
    .time {
    	color: #666666;
        border-bottom: 2rpx solid #e6e6e6;
    }

</style>
